From 0625aad74d1f5b6f9c068955ad3fd7f6df635e50 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Tue, 15 Mar 2022 14:21:23 +0100 Subject: [PATCH] arm: dts: add ASUS GT-AX6000 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Rafał Miłecki --- arch/arm/dts/GTAX6000.dts | 117 ++++++++++++++++++++++++++++++++++++++ arch/arm/dts/Makefile | 3 +- 2 files changed, 119 insertions(+), 1 deletion(-) create mode 100644 arch/arm/dts/GTAX6000.dts diff --git a/arch/arm/dts/GTAX6000.dts b/arch/arm/dts/GTAX6000.dts new file mode 100644 index 0000000000..74224ffc85 --- /dev/null +++ b/arch/arm/dts/GTAX6000.dts @@ -0,0 +1,117 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/dts-v1/; + +#include "bcm4912.dtsi" + +/ { + model = "GTAX6000"; + compatible = "brcm,brcm-v8A"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory { + device_type = "memory"; + reg = <0x0 0x0 0x0 0x8000000>; + }; +}; + +&mdio { + phy1: 1 { + status = "okay"; + }; + + phy2: 2 { + status = "okay"; + }; + + phy3: 3 { + status = "okay"; + }; + + phy4: 4 { + status = "okay"; + }; + + phy6: 6 { + compatible = "brcm,bcaphy"; + phy-type = "10GAE"; + reg = <0x06>; + serdes-core = <0x00>; + serdes-lane = <0x00>; + status = "okay"; + phy-handle = <0x0e>; + phandle = <0x17>; + }; + + phy7: 7 { + compatible = "brcm,bcaphy"; + phy-type = "10GAE"; + reg = <0x07>; + serdes-core = <0x01>; + serdes-lane = <0x00>; + status = "okay"; + phy-handle = <0x0f>; + phandle = <0x19>; + }; +}; + +&switch0 { + ports { + port0@0 { + phy-handle = <&phy1>; + status = "okay"; + label = "eth1"; + }; + + port1@1 { + phy-handle = <&phy2>; + status = "okay"; + label = "eth2"; + }; + + port2@2 { + phy-handle = <&phy3>; + status = "okay"; + label = "eth3"; + }; + + port3@3 { + phy-handle = <&phy4>; + status = "okay"; + label = "eth4"; + }; + + port5@5 { + reg = <0x05>; + mac-type = "XPORT"; + xport-intf = <0x01>; + phy-handle = <&phy6>; + phy-mode = "serdes"; + status = "okay"; + network-leds = <0x18>; + label = "eth0"; + }; + + port6@6 { + reg = <0x06>; + mac-type = "XPORT"; + xport-intf = <0x03>; + phy-handle = <&phy7>; + phy-mode = "serdes"; + status = "okay"; + label = "eth5"; + }; + }; +}; + +&nand { + write-protect = <1>; + status = "okay"; +}; diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 4faa9e52da..1c4887faab 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -781,7 +781,8 @@ dtb-$(CONFIG_BCM4908) += \ RAX220.dtb dtb-$(CONFIG_BCM4912) += \ - bcm94912.dtb + bcm94912.dtb \ + GTAX6000.dtb dtb-$(CONFIG_BCM63138) += \ bcm963138.dtb -- 2.30.2